package com.campusbackend.entity.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

/**
 * 管理员登录请求VO
 * 
 * @author yezi
 * @since 2025-07-27
 */
@Data
@Schema(name = "AdminLoginRequestVO", description = "管理员登录请求对象")
public class AdminLoginRequestVO {
    
    @Schema(description = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    @Pattern(regexp = "^\\S{1,50}$", message = "用户名长度必须在1-50个字符之间，且不能包含空格")
    private String username;
    
    @Schema(description = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^\\S{1,255}$", message = "密码长度必须在1-255个字符之间，且不能包含空格")
    private String password;
}
